<template>
  <div>
      <appdialog
      ref="dialog"
			:visible="false" 
			title="创建组件"
			@confirm="confirmAdd"
			@cancle="cancleAdd"
			width="50%"></appdialog>
      <env
			  		ref="env"
			  		:readOnly="false"
			  		@change="envConfigsChange"
			  		></env>
  </div>
</template>




<script>
import appdialog from "@/view/components/dialog/dialog";
import env from "@/view/pages/yingyong/common/env.vue";

  export default {
    components:{
      appdialog,
      env
    },
    data(){
      return{
        formData : {
          varsInfoEnv:[],
        },
      }
    },
    mounted() {
      
    },
    methods:{
      envConfigsChange(name,v){
        this.formData.varsInfoEnv = v ;
        this.concatVarsInfo()
      },
      concatVarsInfo(){
        this.formData.varsInfo = [
          ...this.formData.varsInfoEnv
        ]
      },
      confirmAdd(){

      },
      cancleAdd(){

      },
      open(){
        this.$refs.dialog.open();
      },
    }
  }
</script>
